﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class End : MonoBehaviour
{
    [SerializeField] private Image img;
    [SerializeField] private Animation anim;
    [SerializeField] private ScoreComparator scoreComparator;
    // Start is called before the first frame update
    void Start()
    {
        GameObject gameObject = GameObject.Find("得分栏");
        img = gameObject.GetComponent<Image>();
        anim = img.GetComponent<Animation>();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void Score()
    {
        anim.Play("Settlement");
        img.transform.GetChild(0).transform.GetChild(1).gameObject.SetActive(true);
        img.transform.GetChild(1).transform.GetChild(1).gameObject.SetActive(true);
    }
}
